//
//  GreetConfigView.h
//  ExtModule
//
//  Created by CPX on 2018/9/10.
//  Copyright © 2018年 CPX. All rights reserved.
//

#import "BaseView.h"


/**
 祈福设置View
 */
@interface GreetConfigView : BaseView


/**
 初始化下面的button

 @param frame frame
 @param normalImages 未选中image
 @param selectImages 选中image
 @return <#return value description#>
 */
-(instancetype)initWithFrame:(CGRect)frame
                      titles:(NSArray <NSString * >*)titles
                 normalImage:(NSArray <UIImage * > * )normalImages
                selectImages:(NSArray <UIImage * > * )selectImages;

/**
 点击事件回调
 */
@property (nonatomic,copy) void (^touchIndexEvent)(NSInteger index);


/**
 设置选中的index
 */
@property (nonatomic,assign)NSInteger selectIndex;

@end



/**
 点击自动被选中select的button
 */
@interface StateButton : UIButton
@property (nonatomic,assign)BOOL shouldAutoSelect;//默认点击即可选中。 YES
@end




